

import 'package:flutter/material.dart';

void showMessageDialog(BuildContext context, {String title = "", String content = "", textAlign: TextAlign.end})async {
  await showDialog(
      context: context,
      builder: (context) {
        return AlertDialog(
          title: Text(title, textAlign: textAlign,),
          content:
          Text(content, textAlign: textAlign,),
          actions: <Widget>[],
        ).build(context);
      });
}